<html>
<head>
<title>Awesome Text Test</title>
<script type="text/javascript" src="../core/awesometext.js"></script>
<script type="text/javascript">
function invokeTest(text) {
  var chars = textToChars(text);
  var dbg = document.getElementById('dbg');
  dbg.innerHTML = '';
  for (var i = 0; i < chars.length; i++) {
    dbg.innerHTML += 'originalChar: ';
    for (var j = 0; j < chars[i].originalChar.length; j++) {
      dbg.innerHTML += '0x' + chars[i].originalChar.charCodeAt(j).toString(16) + ' ';
    }
    dbg.innerHTML += '<br />'
    dbg.innerHTML += 'baseCode: ' + chars[i].baseCode + '<br />';
    dbg.innerHTML += 'range: ' + chars[i].unicodeRange + '<br />';
    dbg.innerHTML += 'underline: ' + chars[i].isUnderline + '<br />';
    dbg.innerHTML += 'strikethrough: ' + chars[i].isStrikethrough + '<br />';
    dbg.innerHTML += '<br />';
  }
}
</script>
</head>
<body onload="addToolbar(document.getElementById('ta'));">
<textarea id="ta" style="width: 600px; font-size: 14pt;">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz</textarea>
<br />
<button onclick="invokeTest(document.getElementById('ta').value); return false;">
Debug
</button>

<div id="dbg"><div>
</body>
</html>
